package procilege.impl;

import procilege.lang.Name;

public class NameImpl implements Name {

	public long nameId;

	public NameImpl(long id) {

		this.nameId = id;
	}

	public long getNameSN() {
		return nameId;
	}

	@Override
	public int hashCode() {
		final int PRIME = 31;
		int result = 1;
		result = PRIME * result + (int) (nameId ^ (nameId >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final NameImpl other = (NameImpl) obj;
		if (nameId != other.nameId)
			return false;
		return true;
	}
}